package com.huatech.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.huatech.cloud.service.LogService;

@RestController
public class LogController {

	@Autowired LogService logService;
	
	@GetMapping("/api/log/{id}")
	public Object find(@PathVariable("id") Long id) {
		return logService.findById(id);
	}
	
}
